using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPsEmpAddress")]
    public class PsEmpAddress
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "AddressId", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public int AddressId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<int> EmpId { get; set; }

		[ForeignKey("AddressType")]
		[DataMember, Display(Name = "AddressTypeId", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<int> AddressTypeId { get; set; }

		[DataMember, Display(Name = "AddressDescr", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public string AddressDescr { get; set; }

		[ForeignKey("District")]
		[DataMember, Display(Name = "DistrictId", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<int> DistrictId { get; set; }

		[ForeignKey("Province")]
		[DataMember, Display(Name = "ProvinceId", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<int> ProvinceId { get; set; }

		[DataMember, Display(Name = "PostalCode", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public string PostalCode { get; set; }

		[ForeignKey("Country")]
		[DataMember, Display(Name = "CountryId", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<int> CountryId { get; set; }

		[DataMember, Display(Name = "Mobile", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public string Mobile { get; set; }

		[DataMember, Display(Name = "Tel", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public string Tel { get; set; }

		[DataMember, Display(Name = "Fax", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public string Fax { get; set; }

		[DataMember, Display(Name = "Email", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public string Email { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }


		[DataMember, Display(Name = "HrmPsEmployees", ResourceType = typeof(Resources.PsEmpAddressResource))]
        public virtual HRM.Employee HrmPsEmployees { get; set; }
         
		public virtual HRM.MasAddressType AddressType { get; set; }

		public virtual HRM.MasDistrict District { get; set; }

		public virtual HRM.MasProvince Province { get; set; }

		public virtual HRM.MasCountry Country { get; set; }

    }
}